// 知识库和分类mock数据，供知识库管理和工单管理等页面统一使用
import { ref } from 'vue'

export const categories = ref([
    { id: 1, name: '产品使用', parentId: null },
    { id: 2, name: '故障排除', parentId: null },
    { id: 3, name: '常见问题', parentId: null },
    { id: 4, name: '操作指南', parentId: null },
])

export const knowledgeList = ref([
    {
        id: 1,
        title: '如何注册账号',
        categoryId: 1,
        content: '注册账号请点击右上角“注册”按钮，填写信息后提交。',
        tags: ['注册', '账号'],
        keywords: ['注册', '新用户'],
        status: 'published',
        weight: 10,
        views: 123,
        helpful: 98,
        created: '2024-06-01',
        updated: '2024-06-02',
    },
    {
        id: 2,
        title: '密码找回流程',
        categoryId: 3,
        content: '点击“忘记密码”，根据提示操作即可。',
        tags: ['密码', '安全'],
        keywords: ['密码', '重置'],
        status: 'draft',
        weight: 5,
        views: 56,
        helpful: 80,
        created: '2024-06-01',
        updated: '2024-06-03',
    },
]) 